package javaer.starter.placeholder;

import java.util.HashSet;
import java.util.Properties;
import java.util.Set;

/**
 * @author yangzhen
 * @date 2021/11/30 10:35
 * @since 1.0.0
 */
public class SystemParameter {

    public static final Set<String> inner_parameters = new HashSet<>();

    static {
        inner_parameters.add("loggingRoot");
    }

    public static boolean isSystemParameter(String key) {
        Properties properties = System.getProperties();
        return properties.containsKey(key) || inner_parameters.contains(key);
    }

}
